package 冒泡;

import java.util.Iterator;
import java.util.Scanner;

public class Main { //冒泡排序
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = 5;
		int temp;
		
		int[] arr = new int[n];
		for(int i = 0;i <= n - 1;i++) {
			arr[i] = scanner.nextInt();
		}
		
		for(int i = 0;i <=n - 2;i++) {
			for (int j = n - 1; j > i; j--) {
				if(arr[j] < arr[j - 1]) {
					temp = arr[j];
					arr[j] = arr[j - 1];
					arr[j - 1] = temp;
				}
			}
		}
		
		for (int i : arr) {
			System.out.println(i);
		}
		
	}
}
